package max.ta.stock.plot.data;

import java.util.Date;

import max.ta.data.plot.data.MathLine;
import max.ta.data.plot.data.MathSurface;

public class StockSurface
	extends MathSurface<Date, Double> {

    private MathLine<Date, Double> open;
    private MathLine<Date, Double> low;
    private MathLine<Date, Double> high;
    private MathLine<Date, Double> close;
    private MathLine<Date, Double> volume;

    public MathLine<Date, Double> getOpen() {
	return open;
    }

    public void setOpen(MathLine<Date, Double> open) {
	this.open = open;
    }

    public MathLine<Date, Double> getLow() {
	return low;
    }

    public void setLow(MathLine<Date, Double> low) {
	this.low = low;
    }

    public MathLine<Date, Double> getHigh() {
	return high;
    }

    public void setHigh(MathLine<Date, Double> high) {
	this.high = high;
    }

    public MathLine<Date, Double> getClose() {
	return close;
    }

    public void setClose(MathLine<Date, Double> close) {
	this.close = close;
    }

    public MathLine<Date, Double> getVolume() {
	return volume;
    }

    public void setVolume(MathLine<Date, Double> volume) {
	this.volume = volume;
    }

    @Override
    public String toString() {
	return "StockSurface [O=" + open.getSize() + "-L=" + low.getSize() + "-H=" + high.getSize() + "-C=" + close.getSize() + "-V=" + volume.getSize()
		+ "]";
    }
}
